package cn.com.zetatech.hdjc.service.bo.impl;


import cn.com.zetatech.hdjc.service.bo.ITblAnalyticinstrumentService;
import cn.com.zetatech.hdjc.service.domain.TblAnalyticinstrument;
import cn.com.zetatech.hdjc.service.mapper.TblAnalyticinstrumentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 仪器管理Service业务层处理
 * 
 * @author chenjian
 * @date 2022-03-15
 */
@Service
public class TblAnalyticinstrumentServiceImpl implements ITblAnalyticinstrumentService
{
    @Autowired
    private TblAnalyticinstrumentMapper tblAnalyticinstrumentMapper;

    /**
     * 查询仪器管理
     * 
     * @param id 仪器管理主键
     * @return 仪器管理
     */
    @Override
    public TblAnalyticinstrument selectTblAnalyticinstrumentById(String id)
    {
        return tblAnalyticinstrumentMapper.selectTblAnalyticinstrumentById(id);
    }

    /**
     * 查询仪器管理列表
     * 
     * @param tblAnalyticinstrument 仪器管理
     * @return 仪器管理
     */
    @Override
    public List<TblAnalyticinstrument> selectTblAnalyticinstrumentList(TblAnalyticinstrument tblAnalyticinstrument)
    {
        return tblAnalyticinstrumentMapper.selectTblAnalyticinstrumentList(tblAnalyticinstrument);
    }

    /**
     * 新增仪器管理
     * 
     * @param tblAnalyticinstrument 仪器管理
     * @return 结果
     */
    @Override
    public int insertTblAnalyticinstrument(TblAnalyticinstrument tblAnalyticinstrument)
    {
//        tblAnalyticinstrument.setCreateTime(DateUtils.getNowDate());
        return tblAnalyticinstrumentMapper.insertTblAnalyticinstrument(tblAnalyticinstrument);
    }

    /**
     * 修改仪器管理
     * 
     * @param tblAnalyticinstrument 仪器管理
     * @return 结果
     */
    @Override
    public int updateTblAnalyticinstrument(TblAnalyticinstrument tblAnalyticinstrument)
    {
//        tblAnalyticinstrument.setUpdateTime(DateUtils.getNowDate());
        return tblAnalyticinstrumentMapper.updateTblAnalyticinstrument(tblAnalyticinstrument);
    }

    /**
     * 批量删除仪器管理
     * 
     * @param ids 需要删除的仪器管理主键
     * @return 结果
     */
    @Override
    public int deleteTblAnalyticinstrumentByIds(String[] ids)
    {
        return tblAnalyticinstrumentMapper.deleteTblAnalyticinstrumentByIds(ids);
    }

    /**
     * 删除仪器管理信息
     * 
     * @param id 仪器管理主键
     * @return 结果
     */
    @Override
    public int deleteTblAnalyticinstrumentById(String id)
    {
        return tblAnalyticinstrumentMapper.deleteTblAnalyticinstrumentById(id);
    }
}
